import lombok.AllArgsConstructor;
import lombok.Getter;
import lombok.NonNull;
import lombok.Setter;

public @AllArgsConstructor
class NonNullExample {
    @Getter
    @Setter
    private String name;
    @Getter
    @Setter
    private int age;

    public NonNullExample(@NonNull String name) {
        this.name = name;
    }


    public static void main(String[] args) {
        NonNullExample example = new NonNullExample("jack");
        example.setAge(8);
        System.out.println(example.getAge());
    }
}
